package com.zzl.bonds.ticket.constant.type;

/**
 * @author : gull
 * @date : 2022/2/24 20:06
 */
public enum KeyTypeEnum {
    /**
     * 1 开立中 2 转让中 3 融资中
     */
    KEY_TYPE_REVIEW("1", "复核"),
    KEY_TYPE_EXAMINE("2", "审核"),
    KEY_TYPE_SIGN("3", "签收"),
    KEY_TYPE_DETAILS("4", "详情"),
    ;

    private String code;
    private String value;


    KeyTypeEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public static String getValue(String code) {
        for (KeyTypeEnum statusEnum : KeyTypeEnum.values()) {
            if (statusEnum.code.equals(code)) {
                return statusEnum.value;
            }
        }
        return "";
    }


    public String getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
